package com.ruoyi.common.core.domain.heytalk.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 用户注册DTO
 * @author zhusy
 * @since 2021/10/28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("注册入参DTO")
public class RegisterDTO extends LoginDTO {

    @ApiModelProperty(value = "注册昵称", name = "nickName", required = true)
    @NotBlank(message = "昵称不能为空")
    @Size(min = 1, max = 30, message = "昵称的长度介于1~30位字符之间")
    private String nickName;

}
